package com.mf.vo.transactions;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @Author: lmf
 * @Create: 2024/5/21 21:58
 * Description:
 */
@Data
public class TransactionsVo {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 买入价格
     */
    @Schema(description = "买入价格")
    private BigDecimal price;

    /**
     * 买入金额
     */
    @Schema(description = "买入金额")
    private BigDecimal amount;

    /**
     * 买入日期
     */
    @Schema(description = "买入日期")
    private String date;

    /**
     * 交易费用
     */
    @Schema(description = "交易费用")
    private BigDecimal cost;

    /**
     * 买入备注
     */
    @Schema(description = "买入备注")
    private String remark;

    /**
     * 交易情况 0:实时，1:滞后
     */
    @Schema(description = "交易情况 0:实时，1:滞后")
    private Integer type;

    /**
     * 交易类型 buy:买入,sell:卖出
     */
    @Schema(description = "交易类型 buy:买入,sell:卖出")
    private String type2;

    /**
     * 股票代码
     */
    @Schema(description = "股票代码")
    private String dm;

    /**
     * 股票数量
     */
    @Schema(description = "股票数量")
    private int quantity;

    /**
     * 用户id
     */
    @Schema(description = "用户id")
    private Integer userId;

    private LocalDateTime createdTime;

    private LocalDateTime updateTime;
}
